package com.xli.mis.codeitems.entity.dto;

import com.xli.dto.search.SearchDTO;
import com.xli.dto.search.type.QueryType;
import com.xli.dto.validation.group.IGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
public class CodeItemsSearchDTO extends SearchDTO {

    @Schema(description = "父项id")
    @QueryType(value = QueryType.Type.EQ, field = "pid")
    private String pid;

    @Schema(description = "字典id")
    @NotNull(message = "codeId必填", groups = {IGroup.search.class})
    @QueryType(value = QueryType.Type.EQ, field = "code_id")
    private String codeId;
}
